package com.fd.demo;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        // 目标，简易计算器 实现
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字：");
        int a = sc.nextInt();
        System.out.println("请输入第二个数字：");
        int b = sc.nextInt();
        System.out.println("请输入运算符号：");
        char c = sc.next().charAt(0);
        switch (c) {
            case '+':
                System.out.println(a + b);
                break;
            case '-':
                System.out.println(a - b);
                break;
            case '*':
                System.out.println(a * b);
                break;
            case '/':
                System.out.println(a / b);
                break;
            default:
                System.out.println("输入错误");
        }

        String[] aa = new String[]{"true", "李四", "王五"};
        Object[] bb = new Object[]{true, "李四", "王五"};

    }
}
